﻿package net.libra.notifier
{
	import flash.events.Event;

	/**
	 * 事件通知
	 * @author elvisjiang
	 */
	public class Notification
	{
		private var name:String;
		private var body : Object;
		private var type : String;

		/**
		 * 创建一个通知对象
		 * @param name	事件名称
		 * @param body	事件携带的数据参数
		 * @param type	事件类型
		 */
		public function Notification(name : String, body : Object = null,type : String = "")
		{
			this.name = name;
			this.body = body;
			this.type = type;
		}

		/**
		 * @inheritDoc
		 */
		public function getName() : String
		{
			return this.name;
		}

		/**
		 * @inheritDoc
		 */
		public function setBody(body : Object) : void
		{
			this.body = body;
		}

		/**
		 * @inheritDoc
		 */
		public function getBody() : Object
		{
			return this.body;
		}

		/**
		 * @inheritDoc
		 */
		public function setType(type : String) : void
		{
			this.type = type;
		}

		/**
		 * @inheritDoc
		 */
		public function getType() : String
		{
			return this.type;
		}
	}
}
